import request from '@/utils/request'
// 获取学生数组
export function getStudent(params) {
    return request({
        url: '/user/getStudent',
        method: 'get',
        params
    })
}
// 编辑学生信息
export function editStudent(params, data) {
    return request({
        url: '/user/editStudent',
        method: 'post',
        params,
        data
    })
}
// 获取学生院校信息
export function getStudentOptions(params) {
    return request({
        url: '/user/getStudentOptions',
        method: 'get',
        params
    })
}
// 添加学生
export function addStudent(params, data) {
    return request({
        url: '/user/addStudent',
        method: 'post',
        params,
        data
    })
}
// 删除学生
export function deleteStudent(params, data) {
    return request({
        url: '/user/deleteStudent',
        method: 'post',
        params,
        data
    })
}

export function getTeacher(params) {
    return request({
        url: '/user/getTeacher',
        method: 'get',
        params
    })
}
// 搜索老师信息
export function searchTeacher(params, data) {
    return request({
        url: '/information/searchTeacher',
        method: 'post',
        params,
        data
    })
}
// 获取班级信息
export function getClass(params) {
    return request({
        url: '/information/getClass',
        method: 'get',
        params
    })
}
// 搜索班级信息
export function searchClass(params, data) {
    return request({
        url: '/information/searchClass',
        method: 'post',
        params,
        data
    })
}
// 添加班级
export function addClass(data) {
    return request({
        url: '/information/addClass',
        method: 'post',
        data
    })
}
// 删除班级
export function deleteClass(data) {
    return request({
        url: "/information/deleteClass",
        method: 'post',
        data
    })
}
// 修改班级
export function editClass(data) {
    return request({
        url: '/information/editClass',
        method: "post",
        data
    })
}
// 获取年级信息
export function getGrade(params) {
    return request({
        url: '/information/getGrade',
        method: 'get',
        params
    })
}
// 搜索年级信息
export function searchGrade(params, data) {
    return request({
        url: '/information/searchGrade',
        method: 'post',
        params,
        data
    })
}
// 添加年级
export function addGrade(data) {
    return request({
        url: '/information/addGrade',
        method: 'post',
        data
    })
}
// 删除年级
export function deleteGrade(data) {
    return request({
        url: '/information/deleteGrade',
        method: 'post',
        data
    })
}
// 编辑年级
export function editGrade(data) {
    return request({
        url: '/information/editGrade',
        method: 'post',
        data
    })
}
// 获取学院信息
export function getInstitute(params) {
    return request({
        url: '/information/getInstitute',
        method: 'get',
        params
    })
}
// 编辑学院信息
export function editInstitute(params, data) {
    return request({
        url: '/information/editInstitute',
        method: 'post',
        params,
        data
    })
}
// 添加学院信息
export function addInstitute(data) {
    return request({
        url: '/information/addInstitute',
        method: 'post',
        data
    })
}
// 删除学院信息
export function delInstitute(data) {
    return request({
        url: '/information/delInstitute',
        method: 'post',
        data
    })
}
// 搜索学院信息
export function searchInstitute(params, data) {
    return request({
        url: '/information/searchInstitute',
        method: 'post',
        params,
        data
    })
}
// 获取课程信息
export function getCourse(params) {
    return request({
        url: '/information/getCourse',
        method: 'get',
        params
    })
}
// 搜索课程信息
export function searchCourse(params, data) {
    return request({
        url: '/information/searchCourse',
        method: 'post',
        params,
        data
    })
}
// 添加课程
export function addCourse(data) {
    return request({
        url: "/information/addCourse",
        method: 'post',
        data
    })
}
// 编辑课程
export function editCourse(params, data) {
    return request({
        url: '/information/editCourse',
        method: 'post',
        params,
        data
    })
}
// 删除课程
export function deleteCourse(data) {
    return request({
        url: '/information/deleteCourse',
        method: 'post',
        data
    })
}

// 进行课程分组
export function distributionGroup(data) {
    return request({
        url: '/information/distributionGroup',
        method: 'post',
        data
    })
}
